import request from '@/utils/request'
import apiArr from '@/api'

export function fastJobList(params) {
  return request({
    url: apiArr.fastJobList,
    method: 'get',
    params
  })
}

export function fastJobAdd(data) {
  return request({
    url: apiArr.fastJobAdd,
    method: 'post',
    data
  })
}

export function fastJobEdit(params, method = 'post') {
  if (method === 'post') {
    return request({
      url: apiArr.fastJobEdit,
      method,
      data: params
    })
  } else {
    return request({
      url: apiArr.fastJobEdit,
      method,
      params
    })
  }
}
export function fastJobTop(data) {
  return request({
    url: apiArr.fastJobTop,
    method: 'post',
    data
  })
}
export function fastJobRec(data) {
  return request({
    url: apiArr.fastJobRec,
    method: 'post',
    data
  })
}
export function fastJobRefesh(data) {
  return request({
    url: apiArr.fastJobRefesh,
    method: 'post',
    data
  })
}
export function fastJobAudit(data) {
  return request({
    url: apiArr.fastJobAudit,
    method: 'post',
    data
  })
}
export function fastJobValid(data) {
  return request({
    url: apiArr.fastJobValid,
    method: 'post',
    data
  })
}
export function fastJobDelete(data) {
  return request({
    url: apiArr.fastJobDelete,
    method: 'post',
    data
  })
}

export function fastJobEditPwd(data) {
  return request({
    url: apiArr.fastJobEditPwd,
    method: 'post',
    data
  })
}
export function fastJobDeleteAll(data) {
  return request({
    url: apiArr.fastJobDeleteAll,
    method: 'post',
    data
  })
}
